package chapter09;

/**
 * Created by V5470-I5 on 2016/4/2.
 */
import java.util.*;
import static java.lang.System.out;
public class Messages{
    public static void main(String[] args){
        Map<String,String>messages =new HashMap<>();
        messages.put("Messi","Hello!Messi的信息");
        messages.put("Suares","给Suares的悄悄话");
        messages.put("Neymar","Neymar的可爱喵喵叫！");

        Scanner console=new Scanner(System.in);
        out.print("取得谁的信息");
        String message=messages.get(console.nextLine());
        out.println(message);
        out.println(messages);
    }
}
